Skip to content

Fix deprecation of util.isArray with Array.isArray - #64

Closed
Freezler wants to merge 5 commits into
jaredhanson:masterfrom
Freezler:master
Closed

Fix deprecation of util.isArray with Array.isArray#64
Freezler wants to merge 5 commits into
jaredhanson:masterfrom
Freezler:master

Conversation

@Freezler

Copy link
Copy Markdown

This pull request tackles the deprecation warning caused by the use of util.isArray in the connect-flash library.
The deprecated util.isArray method has been replaced with the recommended Array.isArray method .

Changes:
Replaced var isArray = require('util').isArray with var isArray = Array.isArray in lib/flash.js.
This change prevents the deprecation warning from appearing in the log

  • added .md with easy to follow steps aswell.*

@YasharF

YasharF commented Jan 21, 2025

Copy link
Copy Markdown

Duplicate of #61 and #57

By the way the fix is a one or two lines of code change. Your diff is a whole lot more than what needs to be changed.

@Freezler

Copy link
Copy Markdown
Author

oke thanks for letting me know! im deleting it and have another look at it..

@Freezler Freezler closed this Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants